import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2025-06-21
 * Time: 11:35
 */
public class RandomAmount {
    public static List<Double> splitAmount(Double amount,int people) {
        List<Double> list = new ArrayList<>();

        if(amount <= 0 || people <= 0) {
            throw new IllegalArgumentException("金额不能小于0人数不能小于0");
        }

        if(amount <= people * 0.01) {
            throw new IllegalArgumentException("每个人都必须分到0.01");
        }

        Random random = new Random();
        // 已分为单位
        int remainAmount = (int) (amount * 100);
        int remainPeople = people;
        for(int i = 0; i < people-1; i++) {
            int max = (remainAmount-remainPeople)+1;
            int money = random.nextInt(max)+1;
            list.add(money / 100.0);
            remainAmount -= money;
            remainPeople--;
        }
        list.add(remainAmount / 100.0);
        return list;
    }



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double amount = sc.nextDouble();
        int people = sc.nextInt();

        List<Double> ret = splitAmount(amount,people);

        for(int i = 0; i < ret.size(); i++) {
            System.out.println("第"+(i+1)+"人获得的金额："+ret.get(i));
        }
    }
}
